You are here: Basic Functionalities > AgilePoint Data Services > Data Population

Data Population

NOTE: The AgilePoint Data Population only supports InfoPath and ASP.NET based process models where a schema is associated.

 

To setup the Data Population:

 

  1. Click the Data Population link in the Process Templates Properties pane.


    The Connecting to Server window appears.

  2. Select the Logon type and click OK. The Data Population Configuration window appears. This windows allows you to select either a “Basic” or “Advanced” way of configuring the repository and setting up the mapping for data population.



  3. Do one of the following:

    • Select “Basic” for a more user friendly way of configuring the data population. This method has limited functionality as compared to the “Advanced” method.

    • Select “Advanced” for a more advanced method of configuring the data population. This option should be used by users who have relational database experience.

    If you selected the “Basic” option, the Data Service Configuration window appears.



  4. Click the Ellipses button to populate the database list with all the databases on the server.
  5. (Optional) Change the Target Table name if desired.
  6. Select the Data Fields from the forms schema for which to populate data to the database.
  7. Click Finish. If you selected the “Advanced” option, the Configuration Repository window appears.

  8. In the “Repository” field, select either Microsoft SQL Server or Oracle to write the data toa database, or Sharepoint list to write the data to a SharePoint list.
  9. Do one of the following:

     

    The Schema Mapper window appears. The left window pane shows the form’s Schema, the right side shows the database structure.

     

    NOTE: If the selected tables have more than one foreign key reference, an error message is displayed, also if the selection does not contain a master table that is referenced by a detail table, a warning message is displayed. The Repository dialog closes and opens the Schema mapper. If a selected table does not contain a primary key field, an error will be shown.

     


  1. Map the fields from the form’s schema to the database fields by dragging and dropping from the schema to the database pane. You will see the connection lines appear as shown above. The connection lines may show different colors based on the compatibility of the data types as follows:
      • Green: The data type matches.
      • Blue: The data type does not match, the system will handle the conversion.
      • Red: The data type does not match, custom data conversion is required. In this case, click the Add button and add the custom mapping code as necessary to handle the data conversion.

    At runtime, the database is populated with the values of the form fields.

     

Mapping Custom Attributes to Multiple Tables

The following instructions are a use case for mapping custom attributes to multiple tables.

  1. Create a Generic AgilePoint application without a schema.
  2. Add a couple of Update Custom Attribute activities to change the Custom Attribute values. Add a Delay shape in between to observe the changes. The AgilePoint process will look something like this:



  3. Click the Data Population link to open the Configure Repository dialog. Select the Database as Repository and set the Database connection string and click the Connect button to display the list of tables present in the specified database.
  4. Select the tables that are required and set the Runtime address string (optional), then click OK.

    NOTE: All the detail tables are hidden (i.e. not displayed) in the Application table names list box. This is because Detail tables are not supported for custom attribute mapping.
  5. In the Custom Attributes Mapping window, enter the attribute name in the “AttributeName” column and select the FieldName to which the attribute has to be mapped.

    NOTE: All the primary key fields must be mapped to an attribute compulsorily or selected in the Process Id list box, else an error message will be displayed. An attribute can be mapped to more than one field (i.e. One to Many mapping is allowed).